home *** CD-ROM | disk | FTP | other *** search
- Path: ren.cei.net!usenet
- From: james lemley
- Newsgroups: comp.lang.c,comp.unix.programmer
- Subject: Q: '\n' character
- Date: 11 Apr 1996 14:49:51 GMT
- Organization: none to speak of
- Distribution: world
- Message-ID: <4kj66f$k0o@ren.cei.net>
- NNTP-Posting-Host: gatekeeper.acxiom.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- X-Newsreader: <QVT/News ver. 4.0>
-
- >>>Is there a function or some sort of way that I could remove '\n'
- >>>charecter form the end of the string.
-
- fgets(buffer, file);
- buffer[strlen(buffer)-1]=0;
-
-
- It may not be the fastest, but it is darned near the easiest.
-
-